package com.hospital.pet.love.lovepethospital.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 用户ID

     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 联系方式

     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 密码

     */
    @TableField(value = "password")
    private String password;

    /**
     * 角色
     */
    @TableField(value = "role")
    private String role;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}